/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.velocityme.www.dto;

import java.io.Serializable;

/**
 *
 * @author rcrida
 */
public class IdName implements Serializable {

    Long m_long;
    String m_string;

    /** Creates a new instance of NumberString */
    public IdName() {
    }

    public IdName(Long integer, String string) {
        m_long = integer;
        m_string = string;
    }

    public Long getLong() {
        return m_long;
    }

    public void setLong(Long lng) {
        m_long = lng;
    }

    public String getString() {
        return m_string;
    }

    public void setString(String string) {
        m_string = string;
    }

    @Override
    public boolean equals(Object other) {
        if (other instanceof IdName) {
            IdName oth = (IdName)other;
            return m_string.equals(oth.m_string) && m_long.equals(oth.m_long);
        }
        return false;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 53 * hash + (this.m_long != null ? this.m_long.hashCode() : 0);
        hash = 53 * hash + (this.m_string != null ? this.m_string.hashCode() : 0);
        return hash;
    }

}
